Skip to content

refactor(lib): mirror the PR #210 review changes onto main - #19

Merged
eeholmes merged 1 commit into
mainfrom
chore/mirror-codec-error-naming
Aug 30, 2026
Merged

refactor(lib): mirror the PR #210 review changes onto main#19
eeholmes merged 1 commit into
mainfrom
chore/mirror-codec-error-naming

Conversation

@eeholmes

Copy link
Copy Markdown
Owner

Upstream review on d70-t/gridlook#210 asked for two naming changes:

  • explainDataError -> explainCodecError (and TDataErrorExplanation -> TCodecErrorExplanation)
  • flattenErrorMessage moved out of src/lib/data/codecErrors.ts into src/utils/errorHandling.ts, with its unit tests alongside it in tests/unit/utils/errorHandling.test.ts

Those are already pushed to fix/codec-error-messages. CLAUDE.md requires codecErrors.ts and its test to stay byte-identical between that branch and main, so this cherry-picks the same commit here.

No behaviour change. Typecheck, lint-ci and the full suite (216 tests) pass.

…lper

Two naming points from review:

  - `explainDataError` claimed more than it does, so it is now
    `explainCodecError` (and `TDataErrorExplanation` follows it to
    `TCodecErrorExplanation`).
  - `flattenErrorMessage` is not codec-specific at all — it moves to
    `src/utils/errorHandling.ts` next to `getErrorMessage` and
    `toNormalizedError`, with its unit tests alongside it in
    `tests/unit/utils/errorHandling.test.ts`.

No behaviour change.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0162gtw32ckX3EFQFPqs74dN
@eeholmes
eeholmes merged commit 8acf676 into main Aug 30, 2026
2 checks passed
@eeholmes
eeholmes deleted the chore/mirror-codec-error-naming branch August 30, 2026 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant